package com.tianxinweb.entity;

import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cboy
 * @since 2018-08-07
 */
@TableName("tx_information")
public class Information implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 公告标题
     */
    private String title;
    /**
     * 公告封面
     */
    private String imageurl;
    /**
     * 公告详情
     */
    private String detail;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 是否推荐
     */
    private Boolean recommend;
    /**
     * 公告阅读数量
     */
    private Integer readingAmount;
    /**
     * 删除标志
     */
    @TableLogic
    private Boolean deleteFlag;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImageurl() {
        return imageurl;
    }

    public void setImageurl(String imageurl) {
        this.imageurl = imageurl;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Boolean getRecommend() {
        return recommend;
    }

    public void setRecommend(Boolean recommend) {
        this.recommend = recommend;
    }

    public Integer getReadingAmount() {
        return readingAmount;
    }

    public void setReadingAmount(Integer readingAmount) {
        this.readingAmount = readingAmount;
    }

    public Boolean getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Boolean deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Override
    public String toString() {
        return "Information{" +
        ", id=" + id +
        ", title=" + title +
        ", imageurl=" + imageurl +
        ", detail=" + detail +
        ", createTime=" + createTime +
        ", recommend=" + recommend +
        ", readingAmount=" + readingAmount +
        ", deleteFlag=" + deleteFlag +
        "}";
    }
}
